#ifndef _WEATHER_DATA_GENERATOR_H_
#define _WEATHER_DATA_GENERATOR_H_

#include "DataContainer.h"
#include "typedef.h"

typedef struct
{
	UInt16 Value;
	UInt16 Length;
} DataEntry;

typedef struct
{
	DataEntry StartFrame;
	DataEntry WindDirection;
	DataEntry WindSpeed;
	DataEntry CheckSum;
	DataEntry InvWindDirection;
	DataEntry InvWindSpeed;
} DataSet;


class WeatherDataGenerator
{
private:
	DataContainer* ringBuffer;
	void WriteDataEntry(DataEntry);

public:
	WeatherDataGenerator(DataContainer*);
	virtual ~WeatherDataGenerator();

	void WriteWeatherData(DataSet);
	DataSet CreateWeatherData(UInt16, UInt16);
};

#endif	//	_WEATHER_DATA_GENERATOR_H_
